package com.faf.service.impl;

import java.sql.SQLException;
import java.util.ArrayList;

import com.faf.bean.Access;
import com.faf.bean.Comment;
import com.faf.bean.Food;
import com.faf.dao.AccessDao;
import com.faf.dao.CommentDao;
import com.faf.dao.FoodDao;
import com.faf.dao.impl.AccessDaoImpl;
import com.faf.dao.impl.CommentDaoImpl;
import com.faf.dao.impl.FoodDaoImpl;
import com.faf.service.AccessService;
import com.faf.service.CommentService;

public class AccessServiceImpl extends TransactionManager implements AccessService {

	@Override
	public ArrayList<Food> getFoodByFoodCount(String foodType, int currentPage, int pageTotal) throws SQLException {
		// TODO Auto-generated method stub
		AccessDao accessDao = new AccessDaoImpl(con);
		ArrayList<Food> foods=accessDao.getFoodByFoodCount(foodType, currentPage, pageTotal);
		return foods;
	}


}
